import request from './request.js';
import service from './request'

const root = 'http://localhost:38088'
export const URL = root
//获取图片
export function getPhotoBase64(data) {
  return request({
    url: `/video=grabimage`,
    method: 'POST',
    data:data
  })
}

export function closeCamera(data) {
  return request({
    url: `/video=close`,
    method: 'POST',
    data:data
  })
}

export function openCamera(camidx) {
  return request({
    url: `/video=stream&camidx=` +camidx,
    method: 'get'
  })
}
